home *** CD-ROM | disk | FTP | other *** search
- /* Link Bitmap 1.0
- by Oscar, 12 Dec 2003
-
- To run this: DROP the Script from Assets to the Object in Menu.
-
- Some interesting repeating effect. It grabs the Menu, then use it on the object.
- Now it repeat this few times in a loop to get the repeating effects.
-
- Note: because of the bitmap merging, the text will become not-editable after you apply this
- */
-
- // Get the current menu and selected object when you drag and drop script
- // Note: if testing from Script editor make sure you have just one menu opened on desktop,
- // in such case the MenuGetCurSel will return currently opened menu
-
- menu = MenuGetCurSel()
- // VTS menu 1..255, VMG menu 10001..10255
-
- // show the current menu on top of all others
- MenuActivate(menu)
-
- object= ObjectGetCurSel(menu)
-
- if (object==0) then
- print "No object Selected"
- end
- endif
- ProgressBar(0,10,"Infiniting ;-)")
-
- // save original image
- ImgGrabObject(2,menu,object)
-
- nW = ImgGetWidth(2)
- nH = ImgGetHeight(2)
-
- for x = 1 to 10
- ProgressSetPos(x)
-
- ImgGrabMenuFrame(1,menu)
- ImgResize(1,nW,nH)
- // copy alpha from original (2) to working buffer (1)
- ImgCopyAlpha(2,1,0,0)
- ImgSetToObject(1,menu,object)
- next x